﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            Hdisk h = new Hdisk("东芝");
            h.Info();
            h.read();
            h.write();

            Udisk u = new Udisk("金士顿");
            u.Info();
            u.read();
            u.write();

            Computer c = new Computer("联想");
            c.Info();
            c.Usb1 = h;
            c.Usb2 = u;
            c.Read1();
            
            c.Write1();
            c.End();
        }
    }

    interface Usb
    {
        void read();
        void write();
    }
}
